﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.FactoryManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.FactoryManagement.EncodeItemVMs
{
    public partial class EncodeItemBatchVM : BaseBatchVM<EncodeItem, EncodeItem_BatchEdit>
    {
        public EncodeItemBatchVM()
        {
            ListVM = new EncodeItemListVM();
            LinkedVM = new EncodeItem_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class EncodeItem_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._EncodeItem._Scheme")]
        public long? SchemeId { get; set; }
        [Display(Name = "_Model._EncodeItem._ValueName")]
        public string ValueName { get; set; }
        [Display(Name = "_Model._EncodeItem._ValueMode")]
        public ValueTypeEnum? ValueMode { get; set; }
        [Display(Name = "_Model._EncodeItem._Value")]
        public string Value { get; set; }
        [Display(Name = "_Model._EncodeItem._Remark")]
        public string Remark { get; set; }
        [Display(Name = "_Model._EncodeItem._Pos")]
        public int? Pos { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}